using AvaloniaApplication1.Models;

namespace AvaloniaApplication1.IServices;

public interface IMessageParser
{
    /// <summary>
    /// 解析MQTT消息
    /// </summary>
    /// <param name="deviceId">设备ID</param>
    /// <param name="topic">主题</param>
    /// <param name="payload">消息负载</param>
    /// <returns></returns>
    MqttMessageDataModel ParseMessage(string deviceId, string topic, string payload);
}